class Admin::AdminController < ApplicationController
    layout 'admin'
    before_action :check_restaurant_login
    # before_action :get_current_restaurant   

    def check_restaurant_login
        if session[:is_admin] != true
            redirect_to "/admin" and return
        end    
    end    

    def get_current_restaurant
        @restaurant = Restaurant.find session[:restaurant_id]
    end    

end
